import Mockjs from '../../config/config'
// 引入自定义的手机号假数据模板
import '../../utils/mobile';

const user = Mockjs.mock({
    data: [{
        id: '@id',
        username: '@cname',
        mobile: '@phone',
        email: '@email',
        'age|18-45':1,
        'gender|1':['男','女'],
        'birthday': '@date("yyyy-MM-dd")',
        avatar: '@image(120x60,#993333,#cc3333,png,安静)'
    }]
});

let userInformation = Mockjs.mock('/admin/user/information','post',()=>{

    return {
        code: 200,
        data: {
            list: user.data
        }
    }
});

export default userInformation;
